package com.xkdx.caipiao.presistence.changepas;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class ChangepasAction extends AbsAction {

	String id, logintoken,old_user_pass, new_user_pass,signcode;

	public ChangepasAction(String uid, String token,String old_user_pass,String new_user_pass,String signcode) {
		
		this.id = uid;
		this.logintoken = token;
		this.old_user_pass = old_user_pass;
		this.new_user_pass = new_user_pass;
		this.signcode = signcode;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("id", id);
		map.put("logintoken", logintoken);
		map.put("old_user_pass", old_user_pass);
		map.put("new_user_pass", new_user_pass);
		map.put("signcode", signcode);
		String json = constructJson(map);
		Parameter parameter = new Parameter("User", "PasswdSet", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}

}
